package k2_oop.p3_finalAndStatic.demo03;

public class News {

    //由static final 修饰的属性表示 类级别的常量
    public static final String NAME = "新华社";

    public static int count;
    public String title;
    public String content;

    public News(){
        count++;
    }

    public void display(){
        System.out.println(this.title+"-----"+this.content);
    }

    public static void show(String name){
        System.out.println("新闻被"+name+"播出了");
    }
}
